home *** CD-ROM | disk | FTP | other *** search
- stop();
- onEnterFrame = function()
- {
- if(_parent._parent.pauses == false)
- {
- if(this._y >= 600)
- {
- this.removeMovieClip();
- }
- this._x += 4;
- if(inAir)
- {
- if(yinc < 10)
- {
- yinc += g;
- }
- this._y += yinc;
- var _loc3_ = 0;
- while(_loc3_ < _parent._parent.land_array.length)
- {
- landObject = _parent[_parent._parent.land_array[_loc3_]];
- var _loc4_ = landObject.getBounds(_parent).yMin;
- if(this.dfk.hitTest(landObject))
- {
- if(this._y - yinc < _loc4_)
- {
- inAir = false;
- this._y = _loc4_;
- yinc = 0;
- break;
- }
- }
- _loc3_ = _loc3_ + 1;
- }
- }
- else if(!this.dfk.hitTest(landObject))
- {
- yinc = 1;
- inAir = true;
- }
- }
- };
-